package cn.pli.bike.ui;


import android.os.Environment;

/**
 * 公共常量
 *
 * @author pc
 * @date 2017/9/22
 */

public class CommonConstant {
    /**
     * 空字符
     */
    public static final String EMPTY = "";
    /**
     * 性别
     */
    public static final int GENDER_NO = 2;//未说明
    public static final int MAN = 1;//男
    public static final int WOMAN = 0;//女
    /**
     * 正则
     */
    public static final String USER_NAME_REGULAR = "^[A-Za-z0-9_]{4,20}$";
    public static final String USER_PASSWORD_REGULAR = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$";
    public static final String MEDIA_FILE_ROOT = Environment.getExternalStorageDirectory().getAbsolutePath() + "/mimi";

    /**
     * 注册方式
     */
    public final static int PHONE = 1;
    public final static int EMAIL = 2;
    public static final int WEIBO = 3;
    public static final int WECHAT = 4;
    public static final int QQ = 5;
    /**
     * 用户登录字段
     */
    public static final String UNIONID = "unionId";
    public static final String OPENID = "openId";
    public static final String ORIGIN = "origin";

    /**
     * 设置
     */
    public static final int SETTING_EVENY = 1;//所有人
    public static final int SETTING_ATTENTION = 2;//关注用户
    public static final int SETTING_CLOSE = 3;//关闭


    /**
     * 网络请求返回code
     */
    public static final int CODE_400 = 400;                 //
    public static final int CODE_SUCCESS = 200;             //成功
    public static final int CODE_NO_MORE = 1019;            //没有更多数据
    public static final int CODE_1009 = 1009;
    public static final int CODE_1010 = 1010;               //
    public static final int CODE_TOKEN_ERR = 200310;           //token过期
    public static final int CODE_OTHER_DEVICE = 206;        //其他设备登录

    /**
     * 图片或视频Type
     */
    public static final String STRING_IMAGE_1 = "1";
    public static final String STRING_VIDEO_2 = "2";
    /**
     * 时间
     */
    public static final int DATE_DAY = 24 * 60 * 60;
    /**
     * 是否
     */
    public static final int YES = 1;
    public static final int NO = 0;
    /**
     * 分页个数
     */
    public static final int PAGE_SIZE = 10;

    /**
     * app限定数据
     * 手机注册次数
     */
    public static final String PHONE_REGISTER_NUM = "phoneRegistNum";
    public static final int PHONE_REGISTER_NUMBER = 100;
    /**
     * 推送
     */
    public final static String PUSH_APPKEY = "2CED3C3D6D3C3725ADE3B778F4382E2F";
}
